//
//  App_user_message_list_TvCell.m
//  FindCars
//
//  Created by scy on 2019/9/11.
//  Copyright © 2019年 zhiyiLiu. All rights reserved.
//

#import "App_user_message_list_TvCell.h"

@implementation App_user_message_list_TvCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setAList:(UserInform_getTypeListData *)aList{
    _aList = aList;
    if (_aList.isRead.intValue == 2) {
        self.redpointIv.hidden = YES;
    }else{
        self.redpointIv.hidden = NO;

    }
    
    self.titleLb.text = _aList.informTypeName;
    self.timeLb.text = _aList.finallyData;
        
    self.descLb.text = _aList.informTitle;
    [self.iv setImage: UIImageMake(@"message_icon")];

}
- (void)setModel:(UserMessage_findUserMessageSumPageData *)aList{
    _model = aList;
    if (aList.isRead.intValue == 2) {
        self.redpointIv.hidden = YES;
    }else{
        self.redpointIv.hidden = NO;
        
    }
 
    [self.iv sd_setImageWithURL:[NSURL URLWithString:aList.avatarUrl] placeholderImage:UIImageMake(@"mine_head_icon")];
    self.titleLb.text = aList.nickName;
    self.timeLb.text = aList.finallyData;
    self.descLb.text = aList.messageContent;
}
@end
